package com.dede.state;

import android.content.Context;
import android.support.annotation.Nullable;
import android.view.View;
import android.view.ViewGroup;

/**
 * @author hsh
 * 2018/1/22 18:20.
 */
public class TargetContent {

    private int childIndex;
    private Context context;
    private View oldContent;
    @Nullable
    private ViewGroup contentParent;// 可能为null

    public TargetContent(Context context, View oldContent, int childIndex, ViewGroup contentParent) {
        this.context = context;
        this.oldContent = oldContent;
        this.childIndex = childIndex;
        this.contentParent = contentParent;
    }

    public int getChildIndex() {
        return childIndex;
    }

    public Context getContext() {
        return context;
    }

    public View getOldContent() {
        return oldContent;
    }

    @Nullable
    public ViewGroup getContentParent() {
        return contentParent;
    }

}
